package com.liang.common;

public enum CommonCode {

    /**
     * 参数错误
     */
    PARAMETER_ERROR("PARAMETER_ERROR",400,"参数错误"),

    ;

    CommonCode(String name, int code, String msg) {
        this.name = name;
        this.code = code;
        this.msg = msg;
    }

    /**
     * 异常名称
     */
    private String name;

    /**
     * 异常代码
     */
    private int code ;

    /**
     * 返回的错误提示信息
     */
    private String msg;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
